* make-dist: Break intra-tree links.
authorJim Blandy <jimb@redhat.com>
Sun, 23 May 1993 21:16:12 +0000 (21:16 +0000)
committerJim Blandy <jimb@redhat.com>
Sun, 23 May 1993 21:16:12 +0000 (21:16 +0000)
make-dist

index 1c4fa4e2d4d60272f5a7ec8e065b63b1e025080d..09211d6239b7f01892495d4821d3992c0f85e0f3 100755 (executable)
--- a/make-dist
+++ b/make-dist
@@ -276,6 +276,13 @@ for subdir in lisp src lib-src info shortnames; do
   cp etc/COPYING ${tempdir}/${subdir}
 done
 
+#### Make sure that there aren't any hard links between files in the
+#### distribution; people with afs can't deal with that.  Okay,
+#### actually we just re-copy anything with a link count greater
+#### than two.
+echo "Breaking intra-tree links."
+find ${tempdir} ! -type d -links +2 -exec cp {} $$ \; -exec mv $$ {} \;
+
 if [ "${newer}" ]; then
   echo "Removing files older than $newer."
   ## We remove .elc files unconditionally, on the theory that anyone picking